interface res {
    code?: Number,
    data: any,
    message?: String
}

interface success {
    (res: res): any
}
interface fail {
    (res: any): void
}

interface options {
    url: string,
    header?: Object,
    method: "OPTIONS" | "GET" | "HEAD" | "POST" | "PUT" | "DELETE" | "TRACE" | "CONNECT" | undefined,
    data?: any,
    content_type?: string,
    success?: success,
    fail?: fail,
}

export type { options }